from nltk.corpus import stopwords
import nltk
import csv

words = stopwords.words('english')
data_set = []
file = open("OpenEuler_description.csv", encoding="utf-8", errors='ignore').read().split("\n")
for i in range(len(file)):
    result = []
    seg_list = file[i].split()
    for w in seg_list:
        result.append(w)
    filtered_words = [word for word in result if word not in stopwords.words('english')]
    data_set.append(filtered_words)
print(data_set)
